﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DFGK_WMS.Model.DTO
{
    /// <summary>
    /// 销售发货
    /// </summary>
    public class MarketShipmentsDto
    {
        /// <summary>
        /// 销售发货单号
        /// </summary>
        public string OrderSn { get; set; }

        /// <summary>
        /// 公司编码
        /// </summary>
        public string CompanyCode { get; set; }

        /// <summary>
        /// 公司名称
        /// </summary>
        public string CompanyName { get; set; }

        /// <summary>
        /// 源单号(销售订单号)
        /// </summary>
        public string MarketOrderSn { get; set; }

        /// <summary>
        /// 发货时间
        /// </summary>
        public DateTime ShipmentsTime { get; set; }

        /// <summary>
        /// 客户编码
        /// </summary>
        public string ClientCode { get; set; }

        /// <summary>
        /// 客户名称
        /// </summary>
        public string ClientName { get; set; }

        /// <summary>
        /// 楼层
        /// </summary>
        public int Floor {  get; set; }

        /// <summary>
        /// 销售发货明细
        /// </summary>
        public List<MarketShipmentsDetailDto> MarketShipmentsDetailDtos { get; set; }

        public class MarketShipmentsDetailDto
        {
            /// <summary>
            /// 发货单行项目
            /// </summary>
            public int Iineitem { get; set; }

            /// <summary>
            /// 销售订单号
            /// </summary>
            public string MarketOrderSn { get; set; }

            /// <summary>
            /// 销售订单行项目
            /// </summary>
            public string MarketIineitem { get; set; }

            /// <summary>
            /// 物料编码
            /// </summary>
            public string MaterialCode { get; set; }

            /// <summary>
            /// 物料名称
            /// </summary>
            public string MaterialName { get; set; }

            /// <summary>
            /// 规格型号
            /// </summary>
            public string ModelSpec { get; set; }

            /// <summary>
            /// 发货数量
            /// </summary>
            public decimal ShipmentsNum { get; set; }

            /// <summary>
            /// 单位名称
            /// </summary>
            public string UnitName { get; set; }

            /// <summary>
            /// 单位编码
            /// </summary>
            public string UnitCode { get; set; }

            /// <summary>
            /// 收货日期
            /// </summary>
            public DateTime DeliveryTime { get; set; }
        }
    }
}
